﻿//// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
//// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)

using System;
using System.Collections.Generic;
using Emotive.Otf.OtxEditor.Core;
using Emotive.Otf.OtxEditor.Editor;
using Emotive.Otf.OtxEditor.Binding;
using SearchAndReplace;

namespace Emotive.Otf.OtxEditor
{
    public static class LanguageBindingService
    {

        /// <summary>
        /// Creates the binding for the specified text editor. This method never returns null.
        /// </summary>
        public static ILanguageBinding CreateBinding(ITextEditor editor)
        {
            List<ILanguageBinding> bindings = new List<ILanguageBinding>();
            bindings.Add(new CSharpLanguageBinding());
            bindings.Add(new SearchAndReplaceBinding());
            return new AggregatedLanguageBinding(bindings);
        }
    }
}
